﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aoxuelf.MDSTool.Model;

using Xunit;
namespace Aoxuelf.MDSTool.Test
{
    public class RecentLocationTest
    {
        [Fact]
        public void LocationShouldNotBeNull()
        {
            Assert.Throws<ArgumentNullException>
            (
                () => { RecentLocation location = new RecentLocation(null); }
            );
        }

        [Fact]
        public void LocationShouldNotBeEmpty()
        {
            Assert.Throws<ArgumentNullException>
            (
                () => { RecentLocation location = new RecentLocation(string.Empty); }
            );
        }

        [Fact]
        public void DisplayNameShouldNotBeNull()
        {
            Assert.Throws<ArgumentNullException>
            (
                () => 
                { 
                    RecentLocation location = new RecentLocation("D:\\abc");
                    location.DisplayName = null;
                }
            );
        }

        [Fact]
        public void DisplayNameShouldNotBeEmpty()
        {
            Assert.Throws<ArgumentNullException>
            (
                () =>
                {
                    RecentLocation location = new RecentLocation("D:\\abc");
                    location.DisplayName = string.Empty;
                }
            );
        }
    }
}
